// Base.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "UnitTest/TestMgr.h"

namespace {
    
    std::wstring exePath(wchar_t* arg)
    {
        if (arg)
        {
            const std::wstring temp(arg);
            const int number = (temp.rfind(L'\\') + 1);

            std::wstring path(number, L'');
            std::copy(temp.begin(), (temp.begin() + number), path.begin());
            return path;
        }

        return L"";
    }

}

int _tmain(int argc, wchar_t* argv[])
{
    Base::UnitTest::TestMgr::get()->run(::exePath(argv[0]));
	return 0;
}